package routers

import (
	"2301_zk3/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/add", &controllers.GuangController{}, "post:Add")
	beego.Router("/list", &controllers.GuangController{}, "get:List")
	beego.Router("/del", &controllers.GuangController{}, "post:Del")
	beego.Router("/update", &controllers.GuangController{}, "post:Update")

}
